package javango.contrib.admin;

import java.io.Serializable;
import java.util.Map;

public interface BusinessLogic<T> {

	T create(T bean) throws Exception;
	T update(T bean) throws Exception;
	boolean delete(T bean) throws Exception;
	
	Map<String, String> getErrors();
	
	T get(Serializable pk) throws Exception;
	Object getPk(T bean) throws Exception;
	
	boolean canCreate() throws Exception;
	boolean canUpdate(T bean) throws Exception;
	boolean canDelete(T bean) throws Exception;
	
}
